package com.example.shrio.conf;

/**
 * 自定义UsernamePasswordToken
 * 
 * @author wangkai
 *
 * @date: 2019年6月14日 下午4:41:17
 */
public class CustomizedToken extends org.apache.shiro.authc.UsernamePasswordToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7005774169720410357L;

	private String loginType;

	private Object userInfo;

	public CustomizedToken(final String username, final String password, String loginType) {
		super(username, password);
		this.loginType = loginType;
	}
	public CustomizedToken(final String username, final String password, String loginType,Object userInfo) {
		super(username, password);
		this.loginType = loginType;
		this.userInfo = userInfo;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public Object getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(Object userInfo) {
		this.userInfo = userInfo;
	}
}
